package com.team.vlog_temp.dto;

import java.util.ArrayList;
import java.util.List;

public class TreeDto {
    private int id;
    private String label; // 用于前端展示
    private List<TreeDto> children = new ArrayList<>();

    public TreeDto(int id, String label) {
        this.id = id;
        this.label = label;
    }

    // Getter 和 Setter 方法
    public int getId() {
        return id;
    }

    public String getLabel() {
        return label;
    }

    public List<TreeDto> getChildren() {
        return children;
    }

    public void setChildren(List<TreeDto> children) {
        this.children = children;
    }
}